]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Only import STARTUP_ANIMATION_TIME from layout
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 27 Nov 2025 10:27:35 +0000 (11:27 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 27 Nov 2025 10:42:29 +0000 (10:42 +0000)
It's the only value we use from that module, and this would ensure that
the value is actually imported and it's not potentially an undefined
value

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3982>

js/ui/overviewControls.js

index 8537f81629b5d25406b59d7fbf75cb36a11d9648..ad100c41c862a531b6ea7d7c933fa865f05ee1e7 100644 (file)
@@ -8,7 +8,6 @@ import St from 'gi://St';
 
 import * as AppDisplay from './appDisplay.js';
 import * as Dash from './dash.js';
-import * as Layout from './layout.js';
 import * as Main from './main.js';
 import * as Overview from './overview.js';
 import * as SearchController from './searchController.js';
@@ -17,6 +16,8 @@ import * as WindowManager from './windowManager.js';
 import * as WorkspaceThumbnail from './workspaceThumbnail.js';
 import * as WorkspacesView from './workspacesView.js';
 
+import {STARTUP_ANIMATION_TIME} from './layout.js';
+
 export const SMALL_WORKSPACE_RATIO = 0.15;
 const DASH_MAX_HEIGHT_RATIO = 0.16;
 const VERTICAL_SPACING_RATIO = 0.02;
@@ -817,8 +818,6 @@ class ControlsManager extends St.Widget {
         // We can't run the animation before the first allocation happens
         await this.layout_manager.ensureAllocation();
 
-        const {STARTUP_ANIMATION_TIME} = Layout;
-
         // Opacity
         this.ease({
             opacity: 255,